<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>        
        <title></title>
        <meta http-equiv="content-type" content="text/htm;charset=utf-8"/>
        {css file="__PUBLIC__/css/acommon.css" /}
        {jquery/}
        <script>
            $(function(){
                $('tr').mouseover(function(){
                    $(this).css('background-color','#f6f6f6');
                }).mouseout(function(){
                    $(this).css('background-color','#fff');
                });
            });
        </script>
</head>
<body>
<div id="hd_jqueryui_div"></div>
<ul class="top_title">
    <li>
        <p class="menu_title">用户列表</p>
    </li>
    <li>|</li>
    <li>现有用户：<span class="required">{$total}</span></li>
    <li>|</li>
    <li>
        <a href="__CONTROL__/addUser" class="menu_title_a">
            <i class="icon icon-plus-sign"></i>&nbsp;添加用户
        </a>
    </li>
</ul>
<table class="table" style="margin-top:15px;">
    <thead>
        <tr>
            <th>ID</th>
            <th>用户名</td>
            <th>最后登录</th>
            <th>登录IP</th>
            <th>注册时间</th>
            <th>禁止</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
    {foreach from="$users" value="$v"}
        <tr>
            <td align="center">{$v.userid}</td>
            <td align="center">{$v.username}</td>
            <td align="center">{$v.logintime|date:'Y-m-d',@@}</td>
            <td align="center">{$v.loginip}</td>
            <td align="center">{$v.registime|date:'Y-m-d',@@}</td>
            <td align="center">
                {if value="$v.lock"}
                    <span class="required">已锁定</span>
                {else}
                    <span>未锁定</span>
                {/if}
            </td>
            <td align="center">                    
                <a href="__CONTROL__/lockUser/uid/{$v.userid}/lock/<?php if($v['lock']){echo 0;}else{echo 1;}?>" class="btn isok" style="color: #2F68A5">
                    <i class="icon icon-lock"></i>&nbsp;{if value="$v.lock"}解除{else}锁定{/if}
                </a>&nbsp;
                <a href="__CONTROL__/editUser/uid/{$v.userid}" class="btn edit">
                    <i class="icon icon-edit"></i>&nbsp;修改
                </a>&nbsp;
                <a href="__CONTROL__/delUser/uid/{$v.userid}" class="btn del isok">
                    <i class="icon icon-trash"></i>&nbsp;删除
                </a>&nbsp;
            </td>
        </tr>
    {/foreach}
        <tr>
            <td align="center" colspan="7">{$page}</td>
        </tr>
    </tbody>  
</table>
</body>
</html>
